<!DOCTYPE html>
<html>
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div style="padding-bottom: 10px;">
                <button class="layui-btn layuiadmin-btn-operate layui-hide" data-type="batchdel">删除</button>
                <button class="layui-btn layuiadmin-btn-operate" data-type="add">添加</button>
            </div>

            <table id="LAY-table" lay-filter="LAY-table"></table>

            <script type="text/html" id="table-btn-operate">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
                <a class="layui-btn layui-btn-checked layui-btn-xs" lay-event="add"><i class="layui-icon layui-icon-add-1"></i>添加下级</a>
            </script>
        </div>
    </div>
</div>

<script type="text/html" id="typeTpl">
    {{#  if(d.type=='0'){ }}
    <span class="layui-badge layui-bg-green">目录</span>
    {{#  }  }}
    {{#  if(d.type=='1'){ }}
    <span class="layui-badge layui-bg-blue">菜单</span>
    {{#  }  }}
    {{#  if(d.type=='2'){ }}
    <span class="layui-badge layui-bg-orange">按钮</span>
    {{#  } }}
</script>
<script type="text/html" id="iconTpl">
    {{#  if(d.icon!=''){ }}
    <i class='{{d.icon}}'></i>
    {{#  }  }}
</script>
<div th:include="include :: footer"></div>
<script type="text/javascript" th:src="@{/custom/appjs/manage/menu/menu.list.js(v=${srvn})}"></script>
</body>
</html>